﻿<%@ Page Language="C#" AutoEventWireup="true" MasterPageFile="../MasterPage.Master"
    CodeBehind="wfProcPlaHoraMnt.aspx.cs" Inherits="RH.wfProcPlaHoraMnt" %>

<%@ Register Assembly="AjaxControlToolkit" Namespace="AjaxControlToolkit" TagPrefix="ajax" %>
<%@ Import Namespace="Texfina.Common.Mg" %>
<asp:Content ID="Content1" ContentPlaceHolderID="head" runat="Server">
    <link href="../Styles/jquery-ui.custom.css" rel="stylesheet" type="text/css" />
    <script type="text/javascript">
        window.onload = function () {
            var menuTable = document.getElementById('<%=mnuToolbar.ClientID %>');
            var menuLinks = menuTable.getElementsByTagName("a");
            if (menuLinks != null) {
                switch (menuLinks.length) {
                    case 2:
                        menuLinks[0].onclick = function () { return validateEditForm('_BTTSAVE') }
                        break;

                    case 3:
                        menuLinks[0].onclick = function () { return validateEditForm('_BTTSAVE') }
                        menuLinks[1].onclick = function () { return validateEditForm('_BTTSAVNEW') }
                        break;
                }
            }

            this.ResizeGrid();
            this.MessageOnPostback();
        }

        function ResizeGrid() {
            internalGridResize("<%= tabMaster.ClientID %>");
        }
         
        

    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="ContentPlaceHolder1" runat="Server">
    <div class="ToolBar">
        <asp:Menu ID="mnuToolbar" runat="server" CssClass="ToolBarControl" Orientation="Horizontal"
            OnMenuItemClick="mnuToolbar_MenuItemClick">
            <Items>
                <asp:MenuItem Text="Guardar" Value="_BTTSAVE" ImageUrl="../Images/Icons/Enabled/SAVE.png">
                </asp:MenuItem>
                <asp:MenuItem Text="Salir" Value="_BTTEXIT" ImageUrl="../Images/Icons/Enabled/BACK.png">
                </asp:MenuItem>
            </Items>
        </asp:Menu>
    </div>
    <div class="DataHeader">
        <table id="TableDataHeader" cellpadding="0" cellspacing="0">
            <tr>
                <td colspan="3">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td style="width: 5px">
                    &nbsp;
                </td>
                <td>
                    <div style="border: 1px solid #ccc; border-radius: 5px; -moz-border-radius: 5px;
                        -webkit-border-radius: 5px; -ms-border-radius: 5px;">
                        <table width="100%" cellpadding="0" cellspacing="2">
                            <tr>
                                <td colspan="13">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 10px;">
                                    &nbsp;
                                </td>
                                <td>
                                    Codigo Planilla
                                </td>
                                <td colspan="2">
                                    <esd:esdTextBox ID="txtidPlanilla" runat="server" Width="100px" />
                                </td>
                                <td colspan="30px">
                                    &nbsp;
                                </td>
                                <td>
                                    Planilla
                                </td>
                                <td colspan="2">
                                    <esd:esdTextBox ID="txtdsPlanilla" runat="server" Width="150px" />
                                </td>
                                <td colspan="30px">
                                    &nbsp;
                                </td>
                                <td>
                                    Forma de Pago
                                </td>
                                <td colspan="2">
                                    <esd:esdTextBox ID="txtdsFormaPago" runat="server" Width="150px" />
                                </td>
                                <td style="width: 10px;">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td style="width: 10px;">
                                    &nbsp;
                                </td>
                                <td>
                                    Nro.Proceso Anual
                                </td>
                                <td colspan="10">
                                    <esd:esdNumericTextBox ID="txtNroProcAnual" NumericType="Integer" runat="server" Width="100px">
                                    </esd:esdNumericTextBox>
                                </td>
                                <td style="width: 10px;">
                                    &nbsp;
                                </td>
                            </tr>
                            <tr>
                                <td colspan="13">
                                    &nbsp;
                                </td>
                            </tr>
                        </table>
                    </div>
                </td>
                <td style="width: 5px">
                    &nbsp;
                </td>
            </tr>
            <tr>
                <td colspan="3">
                    &nbsp;
                </td>
            </tr>
        </table>
    </div>
    <div class="DataDetail">
        <table width="100%" cellpadding="0" cellspacing="2">
            <tr>
                <td style="width: 5px">
                    &nbsp;
                </td>
                <td>
                    <ajax:TabContainer ID="tabMaster" ScrollBars="Auto" runat="server" 
                        ActiveTabIndex="0" CssClass="gray" Width="100%">
                        <ajax:TabPanel ID="tabChildData" runat="server" HeaderText="Datos Importados/Generados">
                            <ContentTemplate>
                            <table width="100%" cellpadding="0" cellspacing="0">
                                    <tr>
                                        <td colspan="3">
                                            &nbsp;
                                        </td>
                                    </tr>
                                    <tr>
                                        <td style="width: 5px;">
                                            &nbsp;
                                        </td>
                                        <td>
                                            <esd:esdGridView CssClass="esdGridView" ID="grdListData" runat="server" ScrollWidth="100%" 
                                                ScrollHeight="600px" Width="100%" OnRowDataBound="grdListData_RowDataBound" 
                                                ShowHeaderWhenEmpty="True" AutoGenerateColumns="False" RowStyle-Height="22px" HeaderStyle-Font-Size="XX-Small">
                                                <EmptyDataTemplate>
                                                    <div id="gridempty">
                                                        <asp:Image ID="imgEmpty" runat="server" ImageUrl="../Images/Controls/Attention.png" />
                                                        &nbsp;No existen registros para esta solicitud.
                                                    </div>
                                                </EmptyDataTemplate>
                                            </esd:esdGridView>
                                        </td>
                                        <td style="width: 5px;">
                                            &nbsp;
                                        </td>
                                    </tr>
                             </table>       
                            </ContentTemplate>
                        </ajax:TabPanel>
                    </ajax:TabContainer>
                 </td>
                 <td style="width: 5px">
                    &nbsp;
                 </td>
            </tr>
        </table>      
    </div>
    <asp:HiddenField ID="hdnMsgOPB" runat="server" />
    <asp:HiddenField ID="hdnidConRemu" runat="server" />
    <asp:HiddenField ID="hdnidConfig" runat="server" />

</asp:Content>
